﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.Xml.Linq;

namespace RomBotUI.Helpers
{
    public class Locals
    {
        private static XDocument _locales;
        private Dictionary<string, Term> _terms = new Dictionary<string, Term>();

        static Locals()
        {
            //_locales = XDocument.Load( "Locals.xml" );
        }

        public Term this[ string term ]
        {
            get { return _terms[ term ]; }
        }
    }

    public class Term
    {
        private Dictionary<string, string> _locales = new Dictionary<string, string>();
        private string _name;

        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        public string this[ string locale ]
        {
            get { return _locales[ locale ]; }
            set { _locales[ locale ] = value; }
        }
    }
}
